\hypertarget{cbhelper_8h}{\section{src/cbhelper.h File Reference}
\label{cbhelper_8h}\index{src/cbhelper.\-h@{src/cbhelper.\-h}}
}


Auxiliary functions for strings processing.  


{\ttfamily \#include \char`\"{}stlstrings.\-h\char`\"{}}\\*
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{cbhelper_8h_a32a5c6c2351743073c5df2b7090c8adb}{Show\-String\-List} (const \hyperlink{classCString}{C\-String} \&Title, const \hyperlink{classCString}{C\-String} \&Line\-Prefix, const \hyperlink{classCStringList}{C\-String\-List} \&String\-List)
\begin{DoxyCompactList}\small\item\em Prints titled string list to standard output. \end{DoxyCompactList}\item 
\hyperlink{classCString}{C\-String} \hyperlink{cbhelper_8h_a8df51fe5d5c5bd6edc8d8992dbf47a75}{Makefile\-Friendly} (const \hyperlink{classCString}{C\-String} \&A\-String)
\begin{DoxyCompactList}\small\item\em Makes a makefile compatible identifier string from the given string. \end{DoxyCompactList}\item 
\hyperlink{classCString}{C\-String} \hyperlink{cbhelper_8h_a6ea18dc5b132904e5e09373dbb4d5c45}{X\-M\-L\-Friendly} (const \hyperlink{classCString}{C\-String} \&A\-String)
\begin{DoxyCompactList}\small\item\em Makes an X\-M\-L compatible identifier string from the given string. \end{DoxyCompactList}\item 
\hyperlink{classCString}{C\-String} \hyperlink{cbhelper_8h_af77c55aaae54cacd51a80bd4cb56b939}{Flat\-File\-Name} (const \hyperlink{classCString}{C\-String} \&File\-Name)
\begin{DoxyCompactList}\small\item\em Converts given file path to another file name without path delimiters. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
static const int \hyperlink{cbhelper_8h_a0de928d999c997180919163896213baf}{C\-A\-S\-E\-\_\-\-K\-E\-E\-P} = 0
\item 
static const int \hyperlink{cbhelper_8h_a403a9d8ce58cca5a296fe3f3663cca6e}{C\-A\-S\-E\-\_\-\-L\-O\-W\-E\-R} = 1
\item 
static const int \hyperlink{cbhelper_8h_a4fcc95e5a38a8bf4d1cb1f8d4bae92d5}{C\-A\-S\-E\-\_\-\-U\-P\-P\-E\-R} = 2
\item 
static const int \hyperlink{cbhelper_8h_ab266b1b0a34471e2b2638bb70312662d}{Q\-U\-O\-T\-E\-\_\-\-A\-U\-T\-O} = 0
\item 
static const int \hyperlink{cbhelper_8h_a93aa6b62440d40bcc6971b941709b559}{Q\-U\-O\-T\-E\-\_\-\-N\-E\-V\-E\-R} = 1
\item 
static const int \hyperlink{cbhelper_8h_a76c8612f154c856a8815ab4c101c3e3e}{Q\-U\-O\-T\-E\-\_\-\-A\-L\-W\-A\-Y\-S} = 2
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Auxiliary functions for strings processing. 

\subsection{Function Documentation}
\hypertarget{cbhelper_8h_af77c55aaae54cacd51a80bd4cb56b939}{\index{cbhelper.\-h@{cbhelper.\-h}!Flat\-File\-Name@{Flat\-File\-Name}}
\index{Flat\-File\-Name@{Flat\-File\-Name}!cbhelper.h@{cbhelper.\-h}}
\subsubsection[{Flat\-File\-Name}]{\setlength{\rightskip}{0pt plus 5cm}{\bf C\-String} Flat\-File\-Name (
\begin{DoxyParamCaption}
\item[{const {\bf C\-String} \&}]{File\-Name}
\end{DoxyParamCaption}
)}}\label{cbhelper_8h_af77c55aaae54cacd51a80bd4cb56b939}


Converts given file path to another file name without path delimiters. 


\begin{DoxyParams}{Parameters}
{\em File\-Name} & a file name possibly containing path to a file.\\
\hline
\end{DoxyParams}
Example\-: \char`\"{}path/to/file/source.\-o\char`\"{} will be converted to \char`\"{}path\-\_\-to\-\_\-file\-\_\-source.\-o\char`\"{} \hypertarget{cbhelper_8h_a8df51fe5d5c5bd6edc8d8992dbf47a75}{\index{cbhelper.\-h@{cbhelper.\-h}!Makefile\-Friendly@{Makefile\-Friendly}}
\index{Makefile\-Friendly@{Makefile\-Friendly}!cbhelper.h@{cbhelper.\-h}}
\subsubsection[{Makefile\-Friendly}]{\setlength{\rightskip}{0pt plus 5cm}{\bf C\-String} Makefile\-Friendly (
\begin{DoxyParamCaption}
\item[{const {\bf C\-String} \&}]{A\-String}
\end{DoxyParamCaption}
)}}\label{cbhelper_8h_a8df51fe5d5c5bd6edc8d8992dbf47a75}


Makes a makefile compatible identifier string from the given string. 


\begin{DoxyParams}{Parameters}
{\em A\-String} & an identifier name.\\
\hline
\end{DoxyParams}
Custom strings may contain characters that are not allowed inside makefile, therefore these characters are replaced with allowed characters (underscore, etc). \hypertarget{cbhelper_8h_a32a5c6c2351743073c5df2b7090c8adb}{\index{cbhelper.\-h@{cbhelper.\-h}!Show\-String\-List@{Show\-String\-List}}
\index{Show\-String\-List@{Show\-String\-List}!cbhelper.h@{cbhelper.\-h}}
\subsubsection[{Show\-String\-List}]{\setlength{\rightskip}{0pt plus 5cm}void Show\-String\-List (
\begin{DoxyParamCaption}
\item[{const {\bf C\-String} \&}]{Title, }
\item[{const {\bf C\-String} \&}]{Line\-Prefix, }
\item[{const {\bf C\-String\-List} \&}]{String\-List}
\end{DoxyParamCaption}
)}}\label{cbhelper_8h_a32a5c6c2351743073c5df2b7090c8adb}


Prints titled string list to standard output. 


\begin{DoxyParams}{Parameters}
{\em Title} & title of the string list.\\
\hline
{\em Line\-Prefix} & prefix string pritned at the beginning of each line.\\
\hline
{\em String\-List} & list of strings to display. \\
\hline
\end{DoxyParams}
\hypertarget{cbhelper_8h_a6ea18dc5b132904e5e09373dbb4d5c45}{\index{cbhelper.\-h@{cbhelper.\-h}!X\-M\-L\-Friendly@{X\-M\-L\-Friendly}}
\index{X\-M\-L\-Friendly@{X\-M\-L\-Friendly}!cbhelper.h@{cbhelper.\-h}}
\subsubsection[{X\-M\-L\-Friendly}]{\setlength{\rightskip}{0pt plus 5cm}{\bf C\-String} X\-M\-L\-Friendly (
\begin{DoxyParamCaption}
\item[{const {\bf C\-String} \&}]{A\-String}
\end{DoxyParamCaption}
)}}\label{cbhelper_8h_a6ea18dc5b132904e5e09373dbb4d5c45}


Makes an X\-M\-L compatible identifier string from the given string. 


\begin{DoxyParams}{Parameters}
{\em A\-String} & an identifier name.\\
\hline
\end{DoxyParams}
Custom strings may contain characters that are not allowed for X\-M\-L tags, therefore these characters are replaced with allowed characters (underscore, etc). 

\subsection{Variable Documentation}
\hypertarget{cbhelper_8h_a0de928d999c997180919163896213baf}{\index{cbhelper.\-h@{cbhelper.\-h}!C\-A\-S\-E\-\_\-\-K\-E\-E\-P@{C\-A\-S\-E\-\_\-\-K\-E\-E\-P}}
\index{C\-A\-S\-E\-\_\-\-K\-E\-E\-P@{C\-A\-S\-E\-\_\-\-K\-E\-E\-P}!cbhelper.h@{cbhelper.\-h}}
\subsubsection[{C\-A\-S\-E\-\_\-\-K\-E\-E\-P}]{\setlength{\rightskip}{0pt plus 5cm}const int C\-A\-S\-E\-\_\-\-K\-E\-E\-P = 0\hspace{0.3cm}{\ttfamily [static]}}}\label{cbhelper_8h_a0de928d999c997180919163896213baf}
\hypertarget{cbhelper_8h_a403a9d8ce58cca5a296fe3f3663cca6e}{\index{cbhelper.\-h@{cbhelper.\-h}!C\-A\-S\-E\-\_\-\-L\-O\-W\-E\-R@{C\-A\-S\-E\-\_\-\-L\-O\-W\-E\-R}}
\index{C\-A\-S\-E\-\_\-\-L\-O\-W\-E\-R@{C\-A\-S\-E\-\_\-\-L\-O\-W\-E\-R}!cbhelper.h@{cbhelper.\-h}}
\subsubsection[{C\-A\-S\-E\-\_\-\-L\-O\-W\-E\-R}]{\setlength{\rightskip}{0pt plus 5cm}const int C\-A\-S\-E\-\_\-\-L\-O\-W\-E\-R = 1\hspace{0.3cm}{\ttfamily [static]}}}\label{cbhelper_8h_a403a9d8ce58cca5a296fe3f3663cca6e}
\hypertarget{cbhelper_8h_a4fcc95e5a38a8bf4d1cb1f8d4bae92d5}{\index{cbhelper.\-h@{cbhelper.\-h}!C\-A\-S\-E\-\_\-\-U\-P\-P\-E\-R@{C\-A\-S\-E\-\_\-\-U\-P\-P\-E\-R}}
\index{C\-A\-S\-E\-\_\-\-U\-P\-P\-E\-R@{C\-A\-S\-E\-\_\-\-U\-P\-P\-E\-R}!cbhelper.h@{cbhelper.\-h}}
\subsubsection[{C\-A\-S\-E\-\_\-\-U\-P\-P\-E\-R}]{\setlength{\rightskip}{0pt plus 5cm}const int C\-A\-S\-E\-\_\-\-U\-P\-P\-E\-R = 2\hspace{0.3cm}{\ttfamily [static]}}}\label{cbhelper_8h_a4fcc95e5a38a8bf4d1cb1f8d4bae92d5}
\hypertarget{cbhelper_8h_a76c8612f154c856a8815ab4c101c3e3e}{\index{cbhelper.\-h@{cbhelper.\-h}!Q\-U\-O\-T\-E\-\_\-\-A\-L\-W\-A\-Y\-S@{Q\-U\-O\-T\-E\-\_\-\-A\-L\-W\-A\-Y\-S}}
\index{Q\-U\-O\-T\-E\-\_\-\-A\-L\-W\-A\-Y\-S@{Q\-U\-O\-T\-E\-\_\-\-A\-L\-W\-A\-Y\-S}!cbhelper.h@{cbhelper.\-h}}
\subsubsection[{Q\-U\-O\-T\-E\-\_\-\-A\-L\-W\-A\-Y\-S}]{\setlength{\rightskip}{0pt plus 5cm}const int Q\-U\-O\-T\-E\-\_\-\-A\-L\-W\-A\-Y\-S = 2\hspace{0.3cm}{\ttfamily [static]}}}\label{cbhelper_8h_a76c8612f154c856a8815ab4c101c3e3e}
\hypertarget{cbhelper_8h_ab266b1b0a34471e2b2638bb70312662d}{\index{cbhelper.\-h@{cbhelper.\-h}!Q\-U\-O\-T\-E\-\_\-\-A\-U\-T\-O@{Q\-U\-O\-T\-E\-\_\-\-A\-U\-T\-O}}
\index{Q\-U\-O\-T\-E\-\_\-\-A\-U\-T\-O@{Q\-U\-O\-T\-E\-\_\-\-A\-U\-T\-O}!cbhelper.h@{cbhelper.\-h}}
\subsubsection[{Q\-U\-O\-T\-E\-\_\-\-A\-U\-T\-O}]{\setlength{\rightskip}{0pt plus 5cm}const int Q\-U\-O\-T\-E\-\_\-\-A\-U\-T\-O = 0\hspace{0.3cm}{\ttfamily [static]}}}\label{cbhelper_8h_ab266b1b0a34471e2b2638bb70312662d}
\hypertarget{cbhelper_8h_a93aa6b62440d40bcc6971b941709b559}{\index{cbhelper.\-h@{cbhelper.\-h}!Q\-U\-O\-T\-E\-\_\-\-N\-E\-V\-E\-R@{Q\-U\-O\-T\-E\-\_\-\-N\-E\-V\-E\-R}}
\index{Q\-U\-O\-T\-E\-\_\-\-N\-E\-V\-E\-R@{Q\-U\-O\-T\-E\-\_\-\-N\-E\-V\-E\-R}!cbhelper.h@{cbhelper.\-h}}
\subsubsection[{Q\-U\-O\-T\-E\-\_\-\-N\-E\-V\-E\-R}]{\setlength{\rightskip}{0pt plus 5cm}const int Q\-U\-O\-T\-E\-\_\-\-N\-E\-V\-E\-R = 1\hspace{0.3cm}{\ttfamily [static]}}}\label{cbhelper_8h_a93aa6b62440d40bcc6971b941709b559}
